﻿
namespace BLL
{
    public class CommonBLL
    {
        /// <summary>
        /// 程序启动时间
        /// </summary>
        public static DateTime StartTime { get; set; }


        /// <summary>
        /// 本地缓存超时时间（分钟）
        /// </summary>
        public static int CacheTimeOut { get; } = 10;


        /// <summary>
        /// 本次登录通讯加密密钥
        /// </summary>
        public static string AesKey = "";


        /// <summary>
        /// 是否记录数据库执行SQL语句
        /// </summary>
        /// <returns></returns>
        public static bool IsDBLog
        {
            get
            {
#if DEBUG
                return true;
#else
                return false;
#endif

            }
        }

        /// <summary>
        /// 数据库执行超时时间(秒)
        /// </summary>
        public static int DBRunTimeOut
        {
            get
            {
                return 600;
            }
        }

    }
}
